const koaRouter = require("koa-router")

const userRouter = require("./user")
const goodsRouter = require("./goods")
const filesRouter = require("./files")

const router = koaRouter()

router.use(userRouter.routes()).use(userRouter.allowedMethods())
router.use(goodsRouter.routes()).use(goodsRouter.allowedMethods())
router.use(filesRouter.routes()).use(filesRouter.allowedMethods())

module.exports = router
